using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevJobworksheetTList, table list:dev_jobworksheet_t 
	/// </summary>
	internal class DevJobworksheetTList : BaseWritableEntities<DevJobworksheetT>, IDevJobworksheetTList
	{
		private DevJobworksheetTQueryDAO _queryDAO;
		private DevJobworksheetTWritingDAO _writeDAO;

		public DevJobworksheetTList(DevJobworksheetTQueryDAO queryDao, DevJobworksheetTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevJobworksheetT,table items:dev_jobworksheet_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobworksheetT> GetDevJobworksheetTAllItems()
		{
			return _queryDAO.GetDevJobworksheetTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevJobworksheetT,table items:dev_jobworksheet_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobworksheetT> GetDevJobworksheetTItemsById(int id)
		{
			return _queryDAO.GetDevJobworksheetTItemsById(id);
		}

		/// <summary>
		/// 增加一行DevJobworksheetT,table item:dev_jobworksheet_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevJobworksheetT(DevJobworksheetT item)
		{
			return this._writeDAO.AddDevJobworksheetT(item);
		}

		/// <summary>
		/// 增加多行DevJobworksheetT,table items:dev_jobworksheet_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevJobworksheetTs(DevJobworksheetT[] items)
		{
			return this._writeDAO.AddDevJobworksheetTs(items);
		}

		/// <summary>
		/// 更新一行DevJobworksheetT,table item:dev_jobworksheet_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevJobworksheetT(DevJobworksheetT item)
		{
			return this._writeDAO.UpdateDevJobworksheetT(item);
		}

		/// <summary>
		///  更新多行DevJobworksheetT,table items:dev_jobworksheet_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevJobworksheetTs(DevJobworksheetT[] items)
		{
			return this._writeDAO.UpdateDevJobworksheetTs(items);
		}

		/// <summary>
		/// 删除一行DevJobworksheetT,table item:dev_jobworksheet_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobworksheetT(DevJobworksheetT item)
		{
			return this._writeDAO.DeleteDevJobworksheetT(item);
		}

		/// <summary>
		///  删除多行DevJobworksheetT,table items:dev_jobworksheet_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobworksheetTs(DevJobworksheetT[] items)
		{
			return this._writeDAO.DeleteDevJobworksheetTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevJobworksheetT,table entity:dev_jobworksheet_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobworksheetTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevJobworksheetTByIds(ids);
		}

	}
}
